package cn.ac.jaas.ljx.spring.beanlife;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {

	@SuppressWarnings("unused")
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = 
				new AnnotationConfigApplicationContext(DemoConfig.class);
		DemoBean demoBean = context.getBean(DemoBean.class);
		DemoJSRBean jsrBean = context.getBean(DemoJSRBean.class);
		
		context.close();
	}
}
